using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace BTSProjectWizard.Forms
{
    public partial class PortTypePicker : BTSProjectWizard.BTSWizardPage
    {
        public PortTypePicker()
        {
            InitializeComponent();
        }
        public override bool ProcessSymbols()
        {
            bool valid = ValidateParams();
            if (valid)
            {
                if (false)//!String.IsNullOrEmpty(_assembly.Text))
                {//assume if second tab is filled out port type is being selected

                }
                else
                {
                    wizard.AddSymbol("portTypeName", _newPortType.Text);
                    wizard.AddSymbol("operationType", _newDirection.Text);
                    wizard.AddSymbol("portName", _newPortName.Text);
                    wizard.AddSymbol("operationName", _newOpName.Text);
                }
            }

            return valid;
        }

        private bool ValidateParams()
        {
            return true;
        }

        private void _findAssembly_Click(object sender, EventArgs e)
        {

        }

        private void _assembly_TextChanged(object sender, EventArgs e)
        {

        }
    }
}

